/*
 * Copyright (c) 2018. Beyondsoft Corporation.
 * All Rights Reserved.
 *
 * BEYONDSOFT CONFIDENTIALITY
 *
 * The information in this file is confidential and privileged from Beyondsoft Corporation,
 * which is intended only for use solely by Beyondsoft Corporation.
 * Disclosure, copying, distribution, or use of the contents of this file by persons other than Beyondsoft Corporation
 * is strictly prohibited and may violate applicable laws.
 */

package com.luci.security.result;

import org.springframework.security.core.AuthenticationException;

/**
 * 登录异常定义
 *
 * @author jiangwu@beyondsoft.com
 * @date 2018-04-18
 * @version 1.0
 */
public class LoginException extends AuthenticationException {

    /**
     * 自定义错误信息
     */
    private Object error;

    public LoginException(Object error) {
        super(error.toString());
        this.error = error;
    }

    public Object getError() {
        return error;
    }

    public void setError(Object error) {
        this.error = error;
    }
}
